﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoderJoe
{
    public abstract class AspectBase
        : IAspect
    {
        protected AspectContainer Container { get; private set; }

        #region IAspect Members

        public void SetContainer(AspectContainer container)
        {
            Container = container;
        }

        public virtual void Begin()
        {
            
        }

        public virtual void End()
        {
            
        }

        public virtual void WrapInner(Action action)
        {
            action();
        }

        public virtual void WrapOuter(Action action)
        {
            action();
        }

        #endregion
    }
}
